<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<%@ include file="/commons/commonEdit.jsp"%>
<%@ include file="/commons/tabs.jsp"%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>保证金补退</title>
<script type="text/javascript" src="${ctx}/scripts/div/common.js"></script>
<script type="text/javascript" src="${ctx}/scripts/public.js"></script>
<script type="text/javascript" src="${ctx}/scripts/common.js"></script>
<script type="text/javascript">
	var ACTION_URL = "${ctx}/renovation_depositAccountingAction.do?";
	function resize(){
		parent.window.document.all('frameList').style.height=document.body.scrollHeight;
	}

	function init(){  //初始化
		resize();
	}

	function openDetailPage(licenceId,inspectionRequistionId,depositAccountingId){//打开详细主页面
		var url = ACTION_URL+"method=navigateDetailMain";
		   url += "&inspectionRequisitionId="+inspectionRequistionId;
		   url += "&licenceId="+licenceId;
		   url += "&depositAccountingId="+depositAccountingId;

   		top.windowOpen(url, "detailPage", "详细资料", 380,900,true,"detailPageIfm");
	}

</script>


</head>


<body  onload="init();">
<div id="ceTable_Bottom">
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
	   <tr class="grid2">
	       <td colspan="8" class="chareg_hj">金额合计：</td>
	       <td align="right" class="chareg_hj"><span class="font_red">${countSum }</span>&nbsp;元&nbsp;</td>
	       <td  class="chareg_hj">&nbsp;</td>
	   </tr>
	</table>
 </div>

	<div style="overflow:auto; height:210" >
	<ec:ceTable items="depositList"
				autoIncludeParameters="true"
				var="item"
				action="${ctx}/houseMainLin_houseMainLineAction.do?method=queryDepositAccounting&houseNumber=${houseNumber}"
				rowsDisplayed="10"
				width="100%"
				view="pmsview"
				sortable="false"
				styleClass="gridData2"
			>
		<ec:ceRow styleClass="grid" ondblclick="openDetailPage('${item.licenceId}','${item.inspectionRequistionId}','${item.depositAccountingId }');">
			<ec:ceColumn width="14%"  property="licenceNumber" headerCell="pmsHeadrCell"  title="装修许可证号" />
			<ec:ceColumn width="11%"  property="houseNumber" headerCell="pmsHeadrCell"  title="房 号" sortable="true" />
			<ec:ceColumn width="11%"  property="clientNames" headerCell="pmsHeadrCell"  title="业主姓名"/>
			<ec:ceColumn width="12%"  property="returnTerm" headerCell="pmsHeadrCell" title="退还期限" sortable="true" cell="date" parse="yyyy-MM-dd"/>
			<ec:ceColumn width="12%"  property="accountingDate" headerCell="pmsHeadrCell" title="核算时间" sortable="true"  cell="date" parse="yyyy-MM-dd"/>
			<ec:ceColumn width="10%"  property="accountingMan" headerCell="pmsHeadrCell"  title="核算人"></ec:ceColumn>
			<ec:ceColumn width="10%"  property="approvalStateView" headerCell="pmsHeadrCell" title="审批状态" />
			<ec:ceColumn width="10%"  property="returnSum" headerCell="pmsHeadrCell" title="退还金额" />
			<ec:ceColumn width="10%"  property="feeStateView" headerCell="pmsHeadrCell" title="费用状态" />
		</ec:ceRow>
	</ec:ceTable>

	</div>



<div id="quick_rightmenu" style="display:none;" oncontextmenu="return false" class="quick_menu2" onMouseOver="showmy2menu('quick_rightmenu')"  onMouseOut="hidden2menu('quick_rightmenu')" >
  <table width="100%" border="0" cellpadding="0" cellspacing="0" class="grid_quickMenu_bg">
    <tr>
      <td>
      <table width="100%" border="0" cellpadding="2" cellspacing="0">
        <tr>
          <td class="quickMenu_toolbarico"><a href="#"  onClick="checkDeppositAccounting();"onFocus="this.blur()"><img src="${ctx}/images/ico_zx_thjine.gif" alt="退还金额核算" width="16" height="16" border="0" align="absbottom" /> 退还金额核算</a></td>
        </tr>
		<tr>
          <td class="quickMenu_toolbarico"><a href="#" onClick="checkSubmit();" onFocus="this.blur()"><img src="${ctx}/images/ico_submit.gif" alt="提 交" width="16" height="16" border="0" align="absbottom" /> 提 交</a></td>
        </tr>
         <tr>
          <td class="quickMenu_toolbarico"><a href="#"  onClick="checkRenovateApproval();" onFocus="this.blur()"><img src="${ctx}/images/ico_shenpi_zong1.gif" border="0" align="absbottom" />&nbsp;审 批</a></td>
        </tr>
	  </table>
	</td>
    </tr>
  </table>
</div>

</body>
</html>
